package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	
	public class WlybUI extends BaseUI
	{
		
		private var control:WlybLogic;
		
		
		public var role		:NxButton;
		public var pack		:NxButton;
		public var line		:NxButton;
		public var lineup		:NxButton;
		public var channel		:NxButton;
		public var strong		:NxButton;
		public var kungfu		:NxButton;
		public var closeBtn	:NxButton;
		public var btn_help	:NxButton;
		
		public var btn_out:NxButton;
		public var wlybswfSprite:Sprite;
		public function WlybUI(popupUI:Boolean=true)
		{
			control=WlybLogic.getInstance();
			super(popupUI);
		}
		
		override public function Init():void
		{
			control.uiinit();
			wlybswfSprite = new Sprite();
			this.windowBG.addChild(wlybswfSprite);
			
			this.windowBG.addChild(role);
			this.windowBG.addChild(pack);
			this.windowBG.addChild(line);
			this.windowBG.addChild(lineup);
			this.windowBG.addChild(channel);
			this.windowBG.addChild(strong);
			this.windowBG.addChild(kungfu);
			this.windowBG.addChild(closeBtn);
			this.windowBG.addChild(btn_out);
			this.windowBG.addChild(btn_help);
		}
		
		override protected function  BeforeShow():void
		{
			control.BeforeShow();
		}
		
		override protected function AfterHide():void
		{
			control.AfterHide();
		}
	}
}